<extend name="Base/common"/>

<block name="style">
<link href="__CSS__/stylesheet.css" rel="stylesheet">
<link href="__CSS__/user.css" rel="stylesheet">
</block>

<block name="header">
<header>
	<include file="User/header" />
</header>
</block>

<block name="body">
<div class="container main">
	<div class="user-main">
		<div class="col-xs-3">
			<include file="User/left_menu" />
		</div>
		<div class="col-xs-9">
			<h5>主页</h5>
			<div class="content">
				<div class="user-general">
					<div class="user-info">
						<a href="#"><img src="__ROOT__{$info.avatar_path}" /></a>
						<p>{$info.nickname}</p>
						<p>手机号：{$info.mobile}</p>
					</div>
					<div class="account-info">
						<p>我的余额：<em class="yen">￥</em><em class="price">{$info.amount}</em></p>
						<p>冻结金额：<em class="yen">￥</em><em class="price">{$info.freeze_amount}</em></p>
					</div>
					<div class="account-action">
						<p><a class="btn" href="#">立即充值</a></p>
						<p><a class="btn" href="#">提现</a></p>
					</div>
				</div>
				<div class="panel panel-border">
					<div class="head">我的物流</div>
					<ul class="list user-index-shipping">
						<volist name="product_list" id='vo'>
						<li>
							<ul class="table">
								<li><a href="{:U('User/order',array('id'=>$vo['order_id']))}" class="thumb"><img src="__ROOT__{$vo.image_path}"></a></li>
								<notempty name="vo['shipping']" >
								<li><p>{$vo['shipping']['content']}</p><p>{$vo['shipping']['time']} <a href="{:U('User/orderShip',array('orderid'=>$vo['order_id']))}">查看物流明细</a></p></li>
								<else />
								<li><p>暂无记录</p><p><a href="{:U('User/orderShip',array('orderid'=>$vo['order_id']))}">查看物流明细</a></p></li>
								</notempty>									
								<li><a href="{:U('AjaxAction/confirmGoods',array('orderid'=>$vo['order_id']))}" class="btn ajax-get">确认收货</a></li>
							</ul>
						</li>
						</volist>						
					</ul>
				</div>
			</div>
		</div>
	</div>
</div>
</block>

<block name="script">
<script type="text/javascript">
highlight_subnav("{:U('User/index')}");
</script>
</block>